package com.yjc.blog.controller;

import com.yjc.blog.domain.po.Demo;
import com.yjc.blog.service.IDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping
public class HelloController {
    @Autowired
    private  IDemoService iDemoService;

    @RequestMapping
    public List<Demo> hello(){
        return iDemoService.listAll();
    }
}
